package com.leoman.sohuapi.result;
import com.leoman.sohuapi.entity.*;
import com.leoman.utils.JsonUtil;

import java.util.List;
import java.util.Map;

/**
 * 返回结果转换为实体
 * Created by yesong on 2016/8/15.
 */
public class ResultConver {

    /**
     *
     * @param result
     * @return
     */
    public static Result jsonConverToEntity(String result) {
        Result _r = JsonUtil.json2Obj(result,Result.class);
        return _r;
    }

    /**
     *
     * @param result
     * @return
     */
    public static boolean isOk(Result result) {
        if(result.getStatus() == 200 && result.getStatusText().equals("OK")) {
            return true;
        }
        else {
            return false;
        }
    }

    public static String getDate(Result result) {
        return result.getData().toString();
    }

    public static AlbumFromSohu converAlbumFromData(Result result) {
        String r2 = JsonUtil.obj2Json(result.getData());
        return JsonUtil.json2Obj(r2,AlbumFromSohu.class);
    }

    public static VideoDetailFromSohu converVideoDetailFromData(Result result) {
        String r2 = JsonUtil.obj2Json(result.getData());
        return JsonUtil.json2Obj(r2,VideoDetailFromSohu.class);
    }

    public static VideoSubFromSohu converVideoFromSohuFromData(Result result) {
        String r2 = JsonUtil.obj2Json(result.getData());
        Map<String,Object> map = JsonUtil.json2Obj(r2,Map.class);
        String count = map.get("count").toString();
        String vidoes = JsonUtil.obj2Json(map.get("videos"));
        System.out.println(vidoes);
        VideoSubFromSohu videoSubFromSohu = new VideoSubFromSohu();
        videoSubFromSohu.setCount((long)Double.parseDouble(count));
        if (vidoes.equals("null")) {
            videoSubFromSohu.setList(null);
        }else {
            videoSubFromSohu.setList(JsonUtil.json2List(vidoes,VideoFromSohu[].class));
        }
        return videoSubFromSohu;
    }

    public static void main(String[] args) {
        String result = "{\"status\":200,\"statusText\":\"OK\",\"data\":{\"count\":111,\"videos\":[{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095845_5uDOs_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095845_6371k_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第1集\",\"aid\":6189118,\"vid\":1514537,\"time_length\":2239,\"video_order\":1,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514537.shtml?src=\",\"create_date\":\"2014-01-02 16:14:24\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095845.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828010.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095846_K71BB_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095846_4j4JJ_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第2集\",\"aid\":6189118,\"vid\":1514534,\"time_length\":2103,\"video_order\":2,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514534.shtml?src=\",\"create_date\":\"2014-01-02 16:18:28\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095846.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828235.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095847_2t18H_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095847_oi2z4_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第3集\",\"aid\":6189118,\"vid\":1514531,\"time_length\":2054,\"video_order\":3,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514531.shtml?src=\",\"create_date\":\"2014-01-02 16:18:38\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095847.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828247.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095848_ROP8C_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095848_0eSJ5_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第4集\",\"aid\":6189118,\"vid\":1514528,\"time_length\":1956,\"video_order\":4,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514528.shtml?src=\",\"create_date\":\"2014-01-02 16:18:46\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095848.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828249.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095849_06OB9_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095849_3178S_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第5集\",\"aid\":6189118,\"vid\":1514543,\"time_length\":1781,\"video_order\":5,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514543.shtml?src=\",\"create_date\":\"2014-01-02 16:18:53\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095849.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828251.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095850_184zb_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095850_7vQ1c_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第6集\",\"aid\":6189118,\"vid\":1514540,\"time_length\":1893,\"video_order\":6,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514540.shtml?src=\",\"create_date\":\"2014-01-02 16:19:02\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095850.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828258.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095851_6950s_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095851_31Rk1_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第7集\",\"aid\":6189118,\"vid\":1514561,\"time_length\":1918,\"video_order\":7,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514561.shtml?src=\",\"create_date\":\"2014-01-02 16:20:23\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095851.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828399.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095852_q8527_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095852_7VN44_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第8集\",\"aid\":6189118,\"vid\":1514555,\"time_length\":1898,\"video_order\":8,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514555.shtml?src=\",\"create_date\":\"2014-01-02 16:20:40\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095852.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828405.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095853_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095853_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第9集\",\"aid\":6189118,\"vid\":1514549,\"time_length\":1941,\"video_order\":9,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514549.shtml?src=\",\"create_date\":\"2014-01-02 16:20:42\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095853.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828409.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095854_G35lK_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095854_gB3g7_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第10集\",\"aid\":6189118,\"vid\":1514546,\"time_length\":1918,\"video_order\":10,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514546.shtml?src=\",\"create_date\":\"2014-01-02 16:20:45\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095854.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828415.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095855_6YU20_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095855_97pg6_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第11集\",\"aid\":6189118,\"vid\":1514570,\"time_length\":1944,\"video_order\":11,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514570.shtml?src=\",\"create_date\":\"2014-01-02 16:20:48\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095855.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828424.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095856_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095856_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第12集\",\"aid\":6189118,\"vid\":1514564,\"time_length\":1946,\"video_order\":12,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514564.shtml?src=\",\"create_date\":\"2014-01-02 16:21:45\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095856.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828482.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095857_7m4cl_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095857_02T10_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第13集\",\"aid\":6189118,\"vid\":1514558,\"time_length\":1918,\"video_order\":13,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514558.shtml?src=\",\"create_date\":\"2014-01-02 16:21:52\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095857.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828495.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095858_myDdB_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095858_MOseN_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第14集\",\"aid\":6189118,\"vid\":1514552,\"time_length\":1827,\"video_order\":14,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514552.shtml?src=\",\"create_date\":\"2014-01-02 16:21:58\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095858.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828498.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095859_32odl_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095859_a83pP_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第15集\",\"aid\":6189118,\"vid\":1514576,\"time_length\":1978,\"video_order\":15,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514576.shtml?src=\",\"create_date\":\"2014-01-02 16:22:05\",\"clarity\":\"���清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095859.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828530.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20140102/vrs1095860_0PG8c_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20140102/vrs1095860_Coyy9_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第16集\",\"aid\":6189118,\"vid\":1514573,\"time_length\":1885,\"video_order\":16,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514573.shtml?src=\",\"create_date\":\"2014-01-02 16:22:13\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20140102/vrs1095860.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828545.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095861_YB1f2_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095861_2Oa82_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第17集\",\"aid\":6189118,\"vid\":1514567,\"time_length\":1831,\"video_order\":17,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514567.shtml?src=\",\"create_date\":\"2014-01-02 16:23:23\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095861.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828619.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095862_9a128_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095862_j3471_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第18集\",\"aid\":6189118,\"vid\":1514588,\"time_length\":1856,\"video_order\":18,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514588.shtml?src=\",\"create_date\":\"2014-01-02 16:23:33\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095862.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828639.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095863_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095863_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第19集\",\"aid\":6189118,\"vid\":1514582,\"time_length\":2000,\"video_order\":19,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514582.shtml?src=\",\"create_date\":\"2014-01-02 16:23:39\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095863.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828641.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095864_2Y032_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095864_2noh7_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第20集\",\"aid\":6189118,\"vid\":1514579,\"time_length\":1802,\"video_order\":20,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514579.shtml?src=\",\"create_date\":\"2014-01-02 16:23:47\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095864.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828647.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20140102/vrs1095865_9YZA2_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20140102/vrs1095865_9mb8v_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第21集\",\"aid\":6189118,\"vid\":1514600,\"time_length\":1919,\"video_order\":21,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514600.shtml?src=\",\"create_date\":\"2014-01-02 16:23:53\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20140102/vrs1095865.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828650.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095866_p62sb_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095866_20q80_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第22集\",\"aid\":6189118,\"vid\":1514594,\"time_length\":1916,\"video_order\":22,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514594.shtml?src=\",\"create_date\":\"2014-01-02 16:23:57\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095866.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828654.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095867_4o7p3_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095867_1B49s_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第23集\",\"aid\":6189118,\"vid\":1514591,\"time_length\":2045,\"video_order\":23,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514591.shtml?src=\",\"create_date\":\"2014-01-02 16:25:17\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095867.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828752.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095868_r7B33_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095868_i2JCA_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第24集\",\"aid\":6189118,\"vid\":1514585,\"time_length\":1903,\"video_order\":24,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514585.shtml?src=\",\"create_date\":\"2014-01-02 16:25:06\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095868.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828733.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095869_9738O_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095869_3Qz4D_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第25集\",\"aid\":6189118,\"vid\":1514606,\"time_length\":1887,\"video_order\":25,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514606.shtml?src=\",\"create_date\":\"2014-01-02 16:25:09\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095869.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392828743.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095870_1vcBX_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095870_918fJ_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第26集\",\"aid\":6189118,\"vid\":1514603,\"time_length\":1946,\"video_order\":26,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514603.shtml?src=\",\"create_date\":\"2014-01-02 17:47:45\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095870.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392834630.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095871_n4Mup_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095871_2syqC_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第27集\",\"aid\":6189118,\"vid\":1514597,\"time_length\":1887,\"video_order\":27,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514597.shtml?src=\",\"create_date\":\"2014-01-02 17:47:51\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095871.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392834633.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095872_24bOB_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095872_189b9_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第28集\",\"aid\":6189118,\"vid\":1514618,\"time_length\":2043,\"video_order\":28,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514618.shtml?src=\",\"create_date\":\"2014-01-02 17:47:58\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095872.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392834635.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095873_N9w6n_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095873_869u9_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第29集\",\"aid\":6189118,\"vid\":1514612,\"time_length\":1951,\"video_order\":29,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514612.shtml?src=\",\"create_date\":\"2014-01-02 17:48:05\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095873.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392834665.shtml\"},{\"ver_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095874_U9Xr4_pic3.jpg\",\"hor_high_pic\":\"http://photocdn.sohu.com/20131231/vrs1095874_E971G_pic2.jpg\",\"cate_code\":\"101101;101104;101107\",\"cid\":2,\"video_name\":\"再也无法忍受第30集\",\"aid\":6189118,\"vid\":1514609,\"time_length\":1930,\"video_order\":30,\"site\":1,\"url_html5\":\"http://m.tv.sohu.com/v1514609.shtml?src=\",\"create_date\":\"2014-01-02 17:48:11\",\"clarity\":\"高清480P\",\"hor_original_pic\":\"http://photocdn.sohu.com/20131231/vrs1095874.jpg\",\"url_PC\":\"http://tv.sohu.com/20140102/n392834667.shtml\"}]}}\n";
//        String result = "{\"status\":200,\"statusText\":\"OK\",\"data\":{\"aid\":6189118,\"is_download\":1,\"ip_limit\":1,\"mobile_limit\":0,\"fee\":0,\"album_name\":\"再也无法忍受\",\"album_desc\":\"《再也无法忍受》是一部融浪漫和激情同在的电视剧，该剧由演员白日燮和鲜于龙女联袂主演。《再也无法忍受》是部讲述由于父母的再婚，成为两个兄妹家长的一个男人通过毫无代价的牺牲，体现亲情，最终打破沟通壁垒的家庭剧。\",\"search_name\":\"再也无法忍受\",\"is_original_code\":0,\"ver_high_pic\":\"\'\'\",\"hor_high_pic\":\"\'\'\",\"cid\":2,\"cate_code\":\"101101;101104;101107\",\"second_cate_name\":\"家庭剧;言情剧;都市剧\",\"is_trailer\":0,\"director\":\"申允燮\",\"actor\":\"白日燮,鲜于龙女,金镇佑,金成泽,金成泽,安妍红\",\"area_id\":9,\"area\":\"韩剧\",\"year\":\"2013\",\"total_video_count\":111,\"latest_video_count\":111,\"score\":9.5,\"recommend_tip\":\"父母再婚的爆笑浪漫\",\"is_over\":1,\"is_sohu_own\":1,\"is_super_code\":1,\"ver_original_pic\":\"http://photocdn.sohu.com/tvmobile/20140121/2317/13892587096171323.jpg\",\"hor_original_pic\":\"http://photocdn.sohu.com/tvmobile/20140121/2317/13892576546031436.jpg\",\"language_id\":4,\"language\":\"韩语\"}}";
        Result _r = jsonConverToEntity(result);
        VideoSubFromSohu videoSubFromSohu = converVideoFromSohuFromData(_r);
        List<VideoFromSohu> list = videoSubFromSohu.getList();
        System.out.println("size:" + videoSubFromSohu.getCount());
        for (VideoFromSohu v : list) {
            System.out.println(v.toString());
        }
//        AlbumFromSohu a = converAlbumFromData(_r);
//        System.out.println(a.toString());
    }
}
